package com.ssy.lingxi.order.model.bo;

import com.ssy.lingxi.order.entity.OrderDO;
import com.ssy.lingxi.order.model.vo.vendor.request.VendorDeliveryVO;

import java.io.Serializable;

/**
 * 订单发货 - 判断是否转单订单发货，发货条件
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-15
 */
public class TransferOrderDeliveryBO implements Serializable {
    private static final long serialVersionUID = 8946642179439395459L;

    public TransferOrderDeliveryBO() {
        this.deliverSeparatedOrder = false;
        this.order = null;
        this.deliveryVO = null;
    }

    public TransferOrderDeliveryBO(Boolean deliverSeparatedOrder) {
        this.deliverSeparatedOrder = deliverSeparatedOrder;
        this.order = null;
        this.deliveryVO = null;
    }

    public TransferOrderDeliveryBO(Boolean deliverSeparatedOrder, OrderDO order, VendorDeliveryVO deliveryVO) {
        this.deliverSeparatedOrder = deliverSeparatedOrder;
        this.order = order;
        this.deliveryVO = deliveryVO;
    }

    /**
     * 是否将转单前的订单发货，如果为True，则“转单前的订单”、与“转单前的订单的发货参数”不为Null
     */
    private Boolean deliverSeparatedOrder;

    /**
     * 转单前的订单
     */
    private OrderDO order;

    /**
     * 转单前的订单的发货参数
     */
    private VendorDeliveryVO deliveryVO;

    public Boolean getDeliverSeparatedOrder() {
        return deliverSeparatedOrder;
    }

    public void setDeliverSeparatedOrder(Boolean deliverSeparatedOrder) {
        this.deliverSeparatedOrder = deliverSeparatedOrder;
    }

    public OrderDO getOrder() {
        return order;
    }

    public void setOrder(OrderDO order) {
        this.order = order;
    }

    public VendorDeliveryVO getDeliveryVO() {
        return deliveryVO;
    }

    public void setDeliveryVO(VendorDeliveryVO deliveryVO) {
        this.deliveryVO = deliveryVO;
    }
}
